#reference: http://code.google.com/p/sanjhachoolha/wiki/URLPatterns
#url patterns for sanjhachoolha

from django.conf.urls.defaults import *

urlpatterns = patterns(
#the package name sanjhachoolha is important in the line below.
    'sanjhachoolha',
    (r'^$', 'views.index'),
    (r'^acton/add$', 'views.add'),
#    (r'^acton/(\d+)$', 'views.show'),
    (r'^acton/(?P<acton_id>\d+)/(?P<slug>[\w\-]+)$', 'views.show'),
    (r'^acton/(\d+)/edit$', 'views.edit'),
    (r'^acton/(\d+)/subscribe$', 'views.subscribe'),
    (r'^acton/(\d+)/unsubscribe$', 'views.unsubscribe'),
    (r'^acton/(\d+)/signup$', 'views.signup'),
    (r'^acton/(\d+)/leave$', 'views.leave'),
    (r'^acton/(\d+)/unsubscribe$', 'views.unsubscribe'),
    (r'^acton/(\d+)/comments/add$', 'views.add_comment'),
    (r'^acton/(\d+)/comments/(\d+)/delete$', 'views.delete_comment'),
    (r'^search$', 'views.search'),
    (r'^list$', 'views.listall'),
    )
